<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head th:replace="layout::header"></head>

<body>

    <nav th:replace="layout::navbar"></nav>
    <div class="headhome">
        <h1>电影官方信息</h1>
    <div class="a1">
        <h4>当前电影</h4>
        <table class="table table-bordered table-striped">
            <thead class="thead-dark">
                <tr>
                    <th>电影名称</th>
                    <th>产地</th>
                    <th>状态</th>
                    <th>日期</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="aFilm : ${films}">
                    <td th:text="${aFilm.name}"></td>
                    <td th:text="${aFilm.area}"></td>
                    <td th:text="${aFilm.stage}"></td>
                    <td th:text="${aFilm.data}"></td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="a1">
        <h4>当前影源</h4>
        <table class="table table-bordered table-striped">
            <thead>
            <tr>
                <th>电影名称</th>
                <th>状态</th>
                <th>放映地区</th>
                <th>日期</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="aCinema : ${cinemas}">
                <td th:text="${aCinema.name}"></td>
                <td th:text="${aCinema.stage}"></td>
                <td th:text="${aCinema.location}"></td>
                <td th:text="${aCinema.data}"></td>
            </tr>
            </tbody>
        </table>
    </div>
    </div>
</body>
</html>